<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <title>渲染效果(滤镜)</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="图形系统开发实战:进阶篇 示例">
    <meta name="author" content="hjq">
    <meta name="keywords" content="canvas,anygraph,javascript">
    <!-- frame所需脚本和样式 -->
    <link rel="stylesheet" href="../../script/bootstrap-3.3.5/css/bootstrap.min.css">   
    <link rel="stylesheet" href="../../script/codemirror/codemirror.css">
    <script src="../../script/lib/jquery-1.11.2.min.js"></script>
    <script src="../../script/codemirror/codemirror_merge.js"></script>
    <!-- 加载代码块 -->
	<link rel="stylesheet" href="../css/styles.css">
    <script src="../js/helper.js"></script>
    <script>
        var pageTitle = "滤镜";
        var pageDesc = "滤镜效果";
    </script>
    <script type="module">
        import { Graph, VectorSource, Layer, SvgFormat, BgUtil } from "../../src/index.js";

        // graph对象
        let graph = new Graph({
            "target": "graphWrapper",
            "filter": "rgb",
            "filterOptions_": { "green": 200, "blue": 120, "alpha": 0.3 },
            "layers": [
                new Layer({
                    "source": new VectorSource({
                        "dataType": "xml",
                        "fileUrl": "../../demo-data/svg/girl.svg",
                        "format": new SvgFormat()
                    })
                })
            ]
        });
    </script>
</head>

<body>
    <div id="graphWrapper" data-type="graph" style="width:100%; height:400px; border:solid 1px #CCC;"></div>
</body>

</html>